Skip to content

fix(huggingface): Capture streamed tool calls#1848

Merged
Luca Forstner (lforst) merged 5 commits intomainfrom
lforst/hf-stream-tool-calls
Apr 21, 2026
Merged

fix(huggingface): Capture streamed tool calls#1848
Luca Forstner (lforst) merged 5 commits intomainfrom
lforst/hf-stream-tool-calls

Conversation

@lforst
Copy link
Copy Markdown
Member

@lforst Luca Forstner (lforst) commented Apr 17, 2026

We were ignoring streamed tool calls.

Fixes #1846

Copy link
Copy Markdown
Contributor

@Qard Stephen Belanger (Qard) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM, though we might want to consider avoiding this field merging pattern as we're adding unnecessary overhead with that and it's difficult to read anyway.

Comment thread js/src/instrumentation/plugins/huggingface-plugin.ts Outdated
@lforst Luca Forstner (lforst) merged commit 9ee6400 into main Apr 21, 2026
46 of 48 checks passed
@lforst Luca Forstner (lforst) deleted the lforst/hf-stream-tool-calls branch April 21, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bot] HuggingFace streaming chat completion drops tool calls during aggregation

2 participants